package com.ykh.mybbsdemo.constant;

import lombok.Data;


public enum ArticleStatusEnum {
    //枚举示例
    NO_PUBLISH(0,"未发布"),
    PUBLISH_SUCCESS(1,"发布成功"),
    PUBLISH_FAIL(2,"发布失败"),
    IS_DRAFT(3,"草稿"),
    IS_DELETE(4,"已删除");

    private Integer code; //枚举的值
    private String desc; //枚举的描述
    ArticleStatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
